<%@ page language="java" import="java.util.*,com.bean.*,com.dao.*"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
<base href="<%=basePath%>">

<title>帖子</title>
<style>
#div1 {
	float: left;
	background-color: blanchedalmond;
	width: 100px;
	height: 500px;
}

#div2 {
	background-color: beige;
	height: 100px;
}

#div3 {
	background-color: azure;
	height: 400px;
}
</style>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
</head>

<body id="body">
	<div id="div1" align="center">
		<table border="1" cellspacing="0">
			<tr>
				<td style="height: 95px; width: 100px;"></td>
			</tr>
			<tr>
				<td align="center" style="height: 30px; width: 100px;">板块</td>
			</tr>
			<tr>
				<td style="height: 360px; width: 100px;"></td>
			</tr>
		</table>
	</div>
	<div id="div2">
		用户：<input type="text" id="name" value="" /> 
		<a href="./note.jsp"><input style="margin-left: 1200px;"type="button" value="发帖" /></a>
		<input style="margin-left: 20px;"type="button" value="重置密码" /> 
			<a href="./login.jsp"><input id="butt3" style="margin-left: 20px;" type="button" value="注销" /></a>
	</div>
	<div id="div3" align="center">
		<table border="1" cellspacing="0">
			<tr>
				<th>帖子名（回帖数）</th>
				<th>发帖人</th>
				<th>最后修改时间</th>
			</tr>
			
			<%
			Queryt q = new Queryt();
			List<Title> list = q.query();
				for(int i=0;i<list.size();i++){
				%>
				<tr>
				<td> <%= list.get(i).getTitle()%></td>
				<td> <%= list.get(i).getName() %></td>
				<td> <%= list.get(i).getDate() %> </td>
				</tr>
				<% 
				}
			 %>
			
		</table>
	</div>
</body>
</html>
